#!/bin/bash

set -e
set -x

rm -f ./a.out

SOURCE_FILE="$1"

echo "compile $SOURCE_FILE ..."

nvcc $SOURCE_FILE

printf "\n\n"

./a.out

printf "\n\n"
